package com.imooc.sell.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.stereotype.Component;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.math.BigDecimal;

/*
 产品表
 */
@Entity
@Component
@DynamicUpdate
@Data
public class ProductInfo {

    //类目id
    @Id
    private String productId;

    private String productName;

    private BigDecimal productPrice;

    private Integer productStock;

    private String productDescription;

    private String productIcon;

    //0正常 1下架
    private Integer productStatus;

    private Integer categoryType;

}
